<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            padding: 0;
            margin: 0;
        }

        button {
            margin: 16px;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            color: white;
            padding: 0 18px;
            height: 38px;
            border: 1px solid transparent;
            background-color: #16baaa;
            border-radius:2px;
            box-sizing: border-box;
        }

        button:hover {
            opacity: 0.8;
        }

        .icon {
            font-size: 16px;
            font-style: normal;
            pointer-events: none;
        }

        .icon::before {
            content: "❤";
        }
    </style>
</head>

<body>
    <button><i class="icon"></i>按钮</button>
</body>

</html>